using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using QuanLyThietBi.Config;     
using QuanLyThietBi.Entity;
namespace QuanLyThietBi.ManagerBase
{
                

     public abstract class TBL_HoSoDatMuaHangManagerBase
    {
        public TBL_HoSoDatMuaHangManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>TBL_HoSoDatMuaHangEntity</returns>
        public TBL_HoSoDatMuaHangEntity Insert(TBL_HoSoDatMuaHangEntity obj)
        { 
            return (TBL_HoSoDatMuaHangEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>TBL_HoSoDatMuaHangEntity</returns>
        public TBL_HoSoDatMuaHangEntity Update(TBL_HoSoDatMuaHangEntity obj)
        { 
            return (TBL_HoSoDatMuaHangEntity)Adapter.Update(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo dieu kien trong object
        /// </summary>
        /// <returns>TBL_HoSoDatMuaHangEntity</returns>
        public TBL_HoSoDatMuaHangEntity UpdateWithCondition(TBL_HoSoDatMuaHangEntity obj,TBL_HoSoDatMuaHangEntity objCond)
        { 
            return (TBL_HoSoDatMuaHangEntity)Adapter.UpdateWithCondition(obj,objCond);             
        }
 
 
        public TBL_HoSoDatMuaHangEntity Delete(TBL_HoSoDatMuaHangEntity obj)
        { 
            return (TBL_HoSoDatMuaHangEntity)Adapter.Delete(obj);             
        }
 
 
        public TBL_HoSoDatMuaHangEntity DeleteWithCondition(TBL_HoSoDatMuaHangEntity objCond)
        { 
            return (TBL_HoSoDatMuaHangEntity)Adapter.DeleteWithCondition(objCond);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaHSo duoc set trong object
        /// </summary>
        /// <returns>TBL_HoSoDatMuaHangEntity</returns>
        public TBL_HoSoDatMuaHangEntity DeleteByMaHSo (TBL_HoSoDatMuaHangEntity obj)
        { 
            return (TBL_HoSoDatMuaHangEntity)Adapter.DeleteByField(obj,"MaHSo");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaHSo 
        /// </summary>
        /// <returns>TBL_HoSoDatMuaHangEntity</returns>
        public TBL_HoSoDatMuaHangEntity DeleteByMaHSo (string MaHSo )
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.MaHSo = MaHSo;  
            return (TBL_HoSoDatMuaHangEntity)Adapter.DeleteByField(obj,"MaHSo");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NgayLap duoc set trong object
        /// </summary>
        /// <returns>TBL_HoSoDatMuaHangEntity</returns>
        public TBL_HoSoDatMuaHangEntity DeleteByNgayLap (TBL_HoSoDatMuaHangEntity obj)
        { 
            return (TBL_HoSoDatMuaHangEntity)Adapter.DeleteByField(obj,"NgayLap");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NgayLap 
        /// </summary>
        /// <returns>TBL_HoSoDatMuaHangEntity</returns>
        public TBL_HoSoDatMuaHangEntity DeleteByNgayLap (string NgayLap )
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.NgayLap = NgayLap;  
            return (TBL_HoSoDatMuaHangEntity)Adapter.DeleteByField(obj,"NgayLap");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NguoiLap duoc set trong object
        /// </summary>
        /// <returns>TBL_HoSoDatMuaHangEntity</returns>
        public TBL_HoSoDatMuaHangEntity DeleteByNguoiLap (TBL_HoSoDatMuaHangEntity obj)
        { 
            return (TBL_HoSoDatMuaHangEntity)Adapter.DeleteByField(obj,"NguoiLap");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NguoiLap 
        /// </summary>
        /// <returns>TBL_HoSoDatMuaHangEntity</returns>
        public TBL_HoSoDatMuaHangEntity DeleteByNguoiLap (string NguoiLap )
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.NguoiLap = NguoiLap;  
            return (TBL_HoSoDatMuaHangEntity)Adapter.DeleteByField(obj,"NguoiLap");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NoiDungDMH duoc set trong object
        /// </summary>
        /// <returns>TBL_HoSoDatMuaHangEntity</returns>
        public TBL_HoSoDatMuaHangEntity DeleteByNoiDungDMH (TBL_HoSoDatMuaHangEntity obj)
        { 
            return (TBL_HoSoDatMuaHangEntity)Adapter.DeleteByField(obj,"NoiDungDMH");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NoiDungDMH 
        /// </summary>
        /// <returns>TBL_HoSoDatMuaHangEntity</returns>
        public TBL_HoSoDatMuaHangEntity DeleteByNoiDungDMH (string NoiDungDMH )
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.NoiDungDMH = NoiDungDMH;  
            return (TBL_HoSoDatMuaHangEntity)Adapter.DeleteByField(obj,"NoiDungDMH");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ThoiHan duoc set trong object
        /// </summary>
        /// <returns>TBL_HoSoDatMuaHangEntity</returns>
        public TBL_HoSoDatMuaHangEntity DeleteByThoiHan (TBL_HoSoDatMuaHangEntity obj)
        { 
            return (TBL_HoSoDatMuaHangEntity)Adapter.DeleteByField(obj,"ThoiHan");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ThoiHan 
        /// </summary>
        /// <returns>TBL_HoSoDatMuaHangEntity</returns>
        public TBL_HoSoDatMuaHangEntity DeleteByThoiHan (string ThoiHan )
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.ThoiHan = ThoiHan;  
            return (TBL_HoSoDatMuaHangEntity)Adapter.DeleteByField(obj,"ThoiHan");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public TBL_HoSoDatMuaHangEntity Select(TBL_HoSoDatMuaHangEntity obj)
        { 
            return (TBL_HoSoDatMuaHangEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_HoSoDatMuaHangEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_HoSoDatMuaHangEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new TBL_HoSoDatMuaHangEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new TBL_HoSoDatMuaHangEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectAllLST()
        { 
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_HoSoDatMuaHangEntity()),new TBL_HoSoDatMuaHangEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_HoSoDatMuaHangEntity(),option),new TBL_HoSoDatMuaHangEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSo duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaHSo (TBL_HoSoDatMuaHangEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaHSo");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSo duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaHSo (TBL_HoSoDatMuaHangEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaHSo",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSo duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoDatMuaHangEntity></returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectByMaHSoLST (TBL_HoSoDatMuaHangEntity obj)
        { 
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaHSo"),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSo duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoDatMuaHangEntity></returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectByMaHSoLST (TBL_HoSoDatMuaHangEntity obj,SelectOptions option)
        { 
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaHSo",option),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSo 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaHSo (string MaHSo )
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.MaHSo = MaHSo;  
            return Adapter.SelectByField(obj,"MaHSo");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSo duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaHSo (string MaHSo, SelectOptions option)
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.MaHSo = MaHSo;  
            return Adapter.SelectByField(obj,"MaHSo",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSo 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectByMaHSoLST (string MaHSo )
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.MaHSo = MaHSo;  
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaHSo"),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSo duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectByMaHSoLST (string MaHSo, SelectOptions option)
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.MaHSo = MaHSo;  
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaHSo",option),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayLap (TBL_HoSoDatMuaHangEntity obj)
        { 
            return Adapter.SelectByField(obj,"NgayLap");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayLap (TBL_HoSoDatMuaHangEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NgayLap",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLap duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoDatMuaHangEntity></returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectByNgayLapLST (TBL_HoSoDatMuaHangEntity obj)
        { 
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayLap"),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLap duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoDatMuaHangEntity></returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectByNgayLapLST (TBL_HoSoDatMuaHangEntity obj,SelectOptions option)
        { 
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NgayLap",option),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLap 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayLap (string NgayLap )
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.NgayLap = NgayLap;  
            return Adapter.SelectByField(obj,"NgayLap");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayLap (string NgayLap, SelectOptions option)
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.NgayLap = NgayLap;  
            return Adapter.SelectByField(obj,"NgayLap",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLap 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectByNgayLapLST (string NgayLap )
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.NgayLap = NgayLap;  
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayLap"),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayLap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectByNgayLapLST (string NgayLap, SelectOptions option)
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.NgayLap = NgayLap;  
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayLap",option),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiLap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiLap (TBL_HoSoDatMuaHangEntity obj)
        { 
            return Adapter.SelectByField(obj,"NguoiLap");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiLap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiLap (TBL_HoSoDatMuaHangEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NguoiLap",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiLap duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoDatMuaHangEntity></returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectByNguoiLapLST (TBL_HoSoDatMuaHangEntity obj)
        { 
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiLap"),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiLap duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoDatMuaHangEntity></returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectByNguoiLapLST (TBL_HoSoDatMuaHangEntity obj,SelectOptions option)
        { 
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NguoiLap",option),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiLap 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiLap (string NguoiLap )
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.NguoiLap = NguoiLap;  
            return Adapter.SelectByField(obj,"NguoiLap");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiLap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiLap (string NguoiLap, SelectOptions option)
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.NguoiLap = NguoiLap;  
            return Adapter.SelectByField(obj,"NguoiLap",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiLap 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectByNguoiLapLST (string NguoiLap )
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.NguoiLap = NguoiLap;  
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiLap"),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiLap duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectByNguoiLapLST (string NguoiLap, SelectOptions option)
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.NguoiLap = NguoiLap;  
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiLap",option),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungDMH duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNoiDungDMH (TBL_HoSoDatMuaHangEntity obj)
        { 
            return Adapter.SelectByField(obj,"NoiDungDMH");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungDMH duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNoiDungDMH (TBL_HoSoDatMuaHangEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NoiDungDMH",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungDMH duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoDatMuaHangEntity></returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectByNoiDungDMHLST (TBL_HoSoDatMuaHangEntity obj)
        { 
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NoiDungDMH"),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungDMH duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoDatMuaHangEntity></returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectByNoiDungDMHLST (TBL_HoSoDatMuaHangEntity obj,SelectOptions option)
        { 
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NoiDungDMH",option),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungDMH 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNoiDungDMH (string NoiDungDMH )
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.NoiDungDMH = NoiDungDMH;  
            return Adapter.SelectByField(obj,"NoiDungDMH");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungDMH duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNoiDungDMH (string NoiDungDMH, SelectOptions option)
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.NoiDungDMH = NoiDungDMH;  
            return Adapter.SelectByField(obj,"NoiDungDMH",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungDMH 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectByNoiDungDMHLST (string NoiDungDMH )
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.NoiDungDMH = NoiDungDMH;  
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NoiDungDMH"),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungDMH duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectByNoiDungDMHLST (string NoiDungDMH, SelectOptions option)
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.NoiDungDMH = NoiDungDMH;  
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NoiDungDMH",option),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ThoiHan duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByThoiHan (TBL_HoSoDatMuaHangEntity obj)
        { 
            return Adapter.SelectByField(obj,"ThoiHan");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ThoiHan duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByThoiHan (TBL_HoSoDatMuaHangEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ThoiHan",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ThoiHan duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoDatMuaHangEntity></returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectByThoiHanLST (TBL_HoSoDatMuaHangEntity obj)
        { 
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ThoiHan"),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ThoiHan duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoDatMuaHangEntity></returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectByThoiHanLST (TBL_HoSoDatMuaHangEntity obj,SelectOptions option)
        { 
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ThoiHan",option),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ThoiHan 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByThoiHan (string ThoiHan )
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.ThoiHan = ThoiHan;  
            return Adapter.SelectByField(obj,"ThoiHan");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ThoiHan duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByThoiHan (string ThoiHan, SelectOptions option)
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.ThoiHan = ThoiHan;  
            return Adapter.SelectByField(obj,"ThoiHan",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ThoiHan 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectByThoiHanLST (string ThoiHan )
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.ThoiHan = ThoiHan;  
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ThoiHan"),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ThoiHan duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectByThoiHanLST (string ThoiHan, SelectOptions option)
        { 
            TBL_HoSoDatMuaHangEntity obj = new TBL_HoSoDatMuaHangEntity();
            obj.ThoiHan = ThoiHan;  
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ThoiHan",option),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoDatMuaHangEntity></returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectWithConditionLST (TBL_HoSoDatMuaHangEntity obj)
        { 
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new TBL_HoSoDatMuaHangEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_HoSoDatMuaHangEntity></returns>
        public List<TBL_HoSoDatMuaHangEntity> SelectWithConditionLST (TBL_HoSoDatMuaHangEntity obj,SelectOptions option)
        { 
            return  (List<TBL_HoSoDatMuaHangEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new TBL_HoSoDatMuaHangEntity());
        }

}
}
